Package pl.wendigo.chrome.api.dom

Contains DevTools Protocol DOM domain implementation accessible via DOMDomain class.

Types

AttributeModifiedEvent
Link copied to clipboard
data class AttributeModifiedEvent(nodeId: NodeId, name: String, value: String) : Event
Fired when Element's attribute is modified.
AttributeRemovedEvent
Link copied to clipboard
data class AttributeRemovedEvent(nodeId: NodeId, name: String) : Event
Fired when Element's attribute is removed.
BackendNode
Link copied to clipboard
data class BackendNode(nodeType: Int, nodeName: String, backendNodeId: BackendNodeId)
Backend node with a friendly name.
BackendNodeId
Link copied to clipboard
typealias BackendNodeId = Int

Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.

BoxModel
Link copied to clipboard
data class BoxModel(content: Quad, padding: Quad, border: Quad, margin: Quad, width: Int, height: Int, shapeOutside: ShapeOutsideInfo?)
Box model.
CharacterDataModifiedEvent
Link copied to clipboard
data class CharacterDataModifiedEvent(nodeId: NodeId, characterData: String) : Event
Mirrors DOMCharacterDataModified event.
ChildNodeCountUpdatedEvent
Link copied to clipboard
data class ChildNodeCountUpdatedEvent(nodeId: NodeId, childNodeCount: Int) : Event
Fired when Container's child node count has changed.
ChildNodeInsertedEvent
Link copied to clipboard
data class ChildNodeInsertedEvent(parentNodeId: NodeId, previousNodeId: NodeId, node: Node) : Event
Mirrors DOMNodeInserted event.
ChildNodeRemovedEvent
Link copied to clipboard
data class ChildNodeRemovedEvent(parentNodeId: NodeId, nodeId: NodeId) : Event
Mirrors DOMNodeRemoved event.
CollectClassNamesFromSubtreeRequest
Link copied to clipboard
data class CollectClassNamesFromSubtreeRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#collectClassNamesFromSubtree operation call.
CollectClassNamesFromSubtreeResponse
Link copied to clipboard
data class CollectClassNamesFromSubtreeResponse(classNames: List<String>)
Represents response frame that is returned from DOM#collectClassNamesFromSubtree operation call.
CopyToRequest
Link copied to clipboard
data class CopyToRequest(nodeId: NodeId, targetNodeId: NodeId, insertBeforeNodeId: NodeId?)
Represents request frame that can be used with DOM#copyTo operation call.
CopyToResponse
Link copied to clipboard
data class CopyToResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#copyTo operation call.
CSSComputedStyleProperty
Link copied to clipboard
data class CSSComputedStyleProperty(name: String, value: String)
DescribeNodeRequest
Link copied to clipboard
data class DescribeNodeRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?, depth: Int?, pierce: Boolean?)
Represents request frame that can be used with DOM#describeNode operation call.
DescribeNodeResponse
Link copied to clipboard
data class DescribeNodeResponse(node: Node)
Represents response frame that is returned from DOM#describeNode operation call.
DiscardSearchResultsRequest
Link copied to clipboard
data class DiscardSearchResultsRequest(searchId: String)
Represents request frame that can be used with DOM#discardSearchResults operation call.
DistributedNodesUpdatedEvent
Link copied to clipboard
data class DistributedNodesUpdatedEvent(insertionPointId: NodeId, distributedNodes: List<BackendNode>) : Event
Called when distrubution is changed.
DOMDomain
Link copied to clipboard
class DOMDomain : Domain
This domain exposes DOM read/write operations.
FocusRequest
Link copied to clipboard
data class FocusRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?)
Represents request frame that can be used with DOM#focus operation call.
GetAttributesRequest
Link copied to clipboard
data class GetAttributesRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#getAttributes operation call.
GetAttributesResponse
Link copied to clipboard
data class GetAttributesResponse(attributes: List<String>)
Represents response frame that is returned from DOM#getAttributes operation call.
GetBoxModelRequest
Link copied to clipboard
data class GetBoxModelRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?)
Represents request frame that can be used with DOM#getBoxModel operation call.
GetBoxModelResponse
Link copied to clipboard
data class GetBoxModelResponse(model: BoxModel)
Represents response frame that is returned from DOM#getBoxModel operation call.
GetContentQuadsRequest
Link copied to clipboard
data class GetContentQuadsRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?)
Represents request frame that can be used with DOM#getContentQuads operation call.
GetContentQuadsResponse
Link copied to clipboard
data class GetContentQuadsResponse(quads: List<Quad>)
Represents response frame that is returned from DOM#getContentQuads operation call.
GetDocumentRequest
Link copied to clipboard
data class GetDocumentRequest(depth: Int?, pierce: Boolean?)
Represents request frame that can be used with DOM#getDocument operation call.
GetDocumentResponse
Link copied to clipboard
data class GetDocumentResponse(root: Node)
Represents response frame that is returned from DOM#getDocument operation call.
GetFileInfoRequest
Link copied to clipboard
data class GetFileInfoRequest(objectId: RemoteObjectId)
Represents request frame that can be used with DOM#getFileInfo operation call.
GetFileInfoResponse
Link copied to clipboard
data class GetFileInfoResponse(path: String)
Represents response frame that is returned from DOM#getFileInfo operation call.
GetFlattenedDocumentRequest
Link copied to clipboard
data class GetFlattenedDocumentRequest(depth: Int?, pierce: Boolean?)
Represents request frame that can be used with DOM#getFlattenedDocument operation call.
GetFlattenedDocumentResponse
Link copied to clipboard
data class GetFlattenedDocumentResponse(nodes: List<Node>)
Represents response frame that is returned from DOM#getFlattenedDocument operation call.
GetFrameOwnerRequest
Link copied to clipboard
data class GetFrameOwnerRequest(frameId: FrameId)
Represents request frame that can be used with DOM#getFrameOwner operation call.
GetFrameOwnerResponse
Link copied to clipboard
data class GetFrameOwnerResponse(backendNodeId: BackendNodeId, nodeId: NodeId?)
Represents response frame that is returned from DOM#getFrameOwner operation call.
GetNodeForLocationRequest
Link copied to clipboard
data class GetNodeForLocationRequest(x: Int, y: Int, includeUserAgentShadowDOM: Boolean?, ignorePointerEventsNone: Boolean?)
Represents request frame that can be used with DOM#getNodeForLocation operation call.
GetNodeForLocationResponse
Link copied to clipboard
data class GetNodeForLocationResponse(backendNodeId: BackendNodeId, frameId: FrameId, nodeId: NodeId?)
Represents response frame that is returned from DOM#getNodeForLocation operation call.
GetNodesForSubtreeByStyleRequest
Link copied to clipboard
data class GetNodesForSubtreeByStyleRequest(nodeId: NodeId, computedStyles: List<CSSComputedStyleProperty>, pierce: Boolean?)
Represents request frame that can be used with DOM#getNodesForSubtreeByStyle operation call.
GetNodesForSubtreeByStyleResponse
Link copied to clipboard
data class GetNodesForSubtreeByStyleResponse(nodeIds: List<NodeId>)
Represents response frame that is returned from DOM#getNodesForSubtreeByStyle operation call.
GetNodeStackTracesRequest
Link copied to clipboard
data class GetNodeStackTracesRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#getNodeStackTraces operation call.
GetNodeStackTracesResponse
Link copied to clipboard
data class GetNodeStackTracesResponse(creation: StackTrace?)
Represents response frame that is returned from DOM#getNodeStackTraces operation call.
GetOuterHTMLRequest
Link copied to clipboard
data class GetOuterHTMLRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?)
Represents request frame that can be used with DOM#getOuterHTML operation call.
GetOuterHTMLResponse
Link copied to clipboard
data class GetOuterHTMLResponse(outerHTML: String)
Represents response frame that is returned from DOM#getOuterHTML operation call.
GetRelayoutBoundaryRequest
Link copied to clipboard
data class GetRelayoutBoundaryRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#getRelayoutBoundary operation call.
GetRelayoutBoundaryResponse
Link copied to clipboard
data class GetRelayoutBoundaryResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#getRelayoutBoundary operation call.
GetSearchResultsRequest
Link copied to clipboard
data class GetSearchResultsRequest(searchId: String, fromIndex: Int, toIndex: Int)
Represents request frame that can be used with DOM#getSearchResults operation call.
GetSearchResultsResponse
Link copied to clipboard
data class GetSearchResultsResponse(nodeIds: List<NodeId>)
Represents response frame that is returned from DOM#getSearchResults operation call.
InlineStyleInvalidatedEvent
Link copied to clipboard
data class InlineStyleInvalidatedEvent(nodeIds: List<NodeId>) : Event
Fired when Element's inline style is modified via a CSS property modification.
MoveToRequest
Link copied to clipboard
data class MoveToRequest(nodeId: NodeId, targetNodeId: NodeId, insertBeforeNodeId: NodeId?)
Represents request frame that can be used with DOM#moveTo operation call.
MoveToResponse
Link copied to clipboard
data class MoveToResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#moveTo operation call.
Node
Link copied to clipboard
data class Node(nodeId: NodeId, parentId: NodeId?, backendNodeId: BackendNodeId, nodeType: Int, nodeName: String, localName: String, nodeValue: String, childNodeCount: Int?, children: List<Node>?, attributes: List<String>?, documentURL: String?, baseURL: String?, publicId: String?, systemId: String?, internalSubset: String?, xmlVersion: String?, name: String?, value: String?, pseudoType: PseudoType?, shadowRootType: ShadowRootType?, frameId: FrameId?, contentDocument: Node?, shadowRoots: List<Node>?, templateContent: Node?, pseudoElements: List<Node>?, importedDocument: Node?, distributedNodes: List<BackendNode>?, isSVG: Boolean?)
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
NodeId
Link copied to clipboard
typealias NodeId = Int

Unique DOM node identifier.

PerformSearchRequest
Link copied to clipboard
data class PerformSearchRequest(query: String, includeUserAgentShadowDOM: Boolean?)
Represents request frame that can be used with DOM#performSearch operation call.
PerformSearchResponse
Link copied to clipboard
data class PerformSearchResponse(searchId: String, resultCount: Int)
Represents response frame that is returned from DOM#performSearch operation call.
PseudoElementAddedEvent
Link copied to clipboard
data class PseudoElementAddedEvent(parentId: NodeId, pseudoElement: Node) : Event
Called when a pseudo element is added to an element.
PseudoElementRemovedEvent
Link copied to clipboard
data class PseudoElementRemovedEvent(parentId: NodeId, pseudoElementId: NodeId) : Event
Called when a pseudo element is removed from an element.
PseudoType
Link copied to clipboard
enum PseudoType : Enum<PseudoType>
Pseudo element type.
PushNodeByPathToFrontendRequest
Link copied to clipboard
data class PushNodeByPathToFrontendRequest(path: String)
Represents request frame that can be used with DOM#pushNodeByPathToFrontend operation call.
PushNodeByPathToFrontendResponse
Link copied to clipboard
data class PushNodeByPathToFrontendResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#pushNodeByPathToFrontend operation call.
PushNodesByBackendIdsToFrontendRequest
Link copied to clipboard
data class PushNodesByBackendIdsToFrontendRequest(backendNodeIds: List<BackendNodeId>)
Represents request frame that can be used with DOM#pushNodesByBackendIdsToFrontend operation call.
PushNodesByBackendIdsToFrontendResponse
Link copied to clipboard
data class PushNodesByBackendIdsToFrontendResponse(nodeIds: List<NodeId>)
Represents response frame that is returned from DOM#pushNodesByBackendIdsToFrontend operation call.
Quad
Link copied to clipboard
typealias Quad = List<Double>

An array of quad vertices, x immediately followed by y for each point, points clock-wise.

QuerySelectorAllRequest
Link copied to clipboard
data class QuerySelectorAllRequest(nodeId: NodeId, selector: String)
Represents request frame that can be used with DOM#querySelectorAll operation call.
QuerySelectorAllResponse
Link copied to clipboard
data class QuerySelectorAllResponse(nodeIds: List<NodeId>)
Represents response frame that is returned from DOM#querySelectorAll operation call.
QuerySelectorRequest
Link copied to clipboard
data class QuerySelectorRequest(nodeId: NodeId, selector: String)
Represents request frame that can be used with DOM#querySelector operation call.
QuerySelectorResponse
Link copied to clipboard
data class QuerySelectorResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#querySelector operation call.
Rect
Link copied to clipboard
data class Rect(x: Double, y: Double, width: Double, height: Double)
Rectangle.
RemoveAttributeRequest
Link copied to clipboard
data class RemoveAttributeRequest(nodeId: NodeId, name: String)
Represents request frame that can be used with DOM#removeAttribute operation call.
RemoveNodeRequest
Link copied to clipboard
data class RemoveNodeRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#removeNode operation call.
RequestChildNodesRequest
Link copied to clipboard
data class RequestChildNodesRequest(nodeId: NodeId, depth: Int?, pierce: Boolean?)
Represents request frame that can be used with DOM#requestChildNodes operation call.
RequestNodeRequest
Link copied to clipboard
data class RequestNodeRequest(objectId: RemoteObjectId)
Represents request frame that can be used with DOM#requestNode operation call.
RequestNodeResponse
Link copied to clipboard
data class RequestNodeResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#requestNode operation call.
ResolveNodeRequest
Link copied to clipboard
data class ResolveNodeRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectGroup: String?, executionContextId: ExecutionContextId?)
Represents request frame that can be used with DOM#resolveNode operation call.
ResolveNodeResponse
Link copied to clipboard
data class ResolveNodeResponse(_object: RemoteObject)
Represents response frame that is returned from DOM#resolveNode operation call.
RGBA
Link copied to clipboard
data class RGBA(r: Int, g: Int, b: Int, a: Double?)
A structure holding an RGBA color.
ScrollIntoViewIfNeededRequest
Link copied to clipboard
data class ScrollIntoViewIfNeededRequest(nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?, rect: Rect?)
Represents request frame that can be used with DOM#scrollIntoViewIfNeeded operation call.
SetAttributesAsTextRequest
Link copied to clipboard
data class SetAttributesAsTextRequest(nodeId: NodeId, text: String, name: String?)
Represents request frame that can be used with DOM#setAttributesAsText operation call.
SetAttributeValueRequest
Link copied to clipboard
data class SetAttributeValueRequest(nodeId: NodeId, name: String, value: String)
Represents request frame that can be used with DOM#setAttributeValue operation call.
SetChildNodesEvent
Link copied to clipboard
data class SetChildNodesEvent(parentId: NodeId, nodes: List<Node>) : Event
Fired when backend wants to provide client with the missing DOM structure.
SetFileInputFilesRequest
Link copied to clipboard
data class SetFileInputFilesRequest(files: List<String>, nodeId: NodeId?, backendNodeId: BackendNodeId?, objectId: RemoteObjectId?)
Represents request frame that can be used with DOM#setFileInputFiles operation call.
SetInspectedNodeRequest
Link copied to clipboard
data class SetInspectedNodeRequest(nodeId: NodeId)
Represents request frame that can be used with DOM#setInspectedNode operation call.
SetNodeNameRequest
Link copied to clipboard
data class SetNodeNameRequest(nodeId: NodeId, name: String)
Represents request frame that can be used with DOM#setNodeName operation call.
SetNodeNameResponse
Link copied to clipboard
data class SetNodeNameResponse(nodeId: NodeId)
Represents response frame that is returned from DOM#setNodeName operation call.
SetNodeStackTracesEnabledRequest
Link copied to clipboard
data class SetNodeStackTracesEnabledRequest(enable: Boolean)
Represents request frame that can be used with DOM#setNodeStackTracesEnabled operation call.
SetNodeValueRequest
Link copied to clipboard
data class SetNodeValueRequest(nodeId: NodeId, value: String)
Represents request frame that can be used with DOM#setNodeValue operation call.
SetOuterHTMLRequest
Link copied to clipboard
data class SetOuterHTMLRequest(nodeId: NodeId, outerHTML: String)
Represents request frame that can be used with DOM#setOuterHTML operation call.
ShadowRootPoppedEvent
Link copied to clipboard
data class ShadowRootPoppedEvent(hostId: NodeId, rootId: NodeId) : Event
Called when shadow root is popped from the element.
ShadowRootPushedEvent
Link copied to clipboard
data class ShadowRootPushedEvent(hostId: NodeId, root: Node) : Event
Called when shadow root is pushed into the element.
ShadowRootType
Link copied to clipboard
enum ShadowRootType : Enum<ShadowRootType>
Shadow root type.
ShapeOutsideInfo
Link copied to clipboard
data class ShapeOutsideInfo(bounds: Quad, shape: List<JsonElement>, marginShape: List<JsonElement>)
CSS Shape Outside details.